/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simulator;

import java.util.Comparator;
import net.octopeer.core.Neighbor;
/**
 *
 * @author andria
 */
public class NeighborComparator implements Comparator<Neighbor>{

    public int compare(Neighbor o1, Neighbor o2) {
        return -(o1.getRank() - o2.getRank());
    }

}
